package com.shuhe.domain.mxgc;

import java.util.ArrayList;

public class CommonResponseBody {
    private String msg;
    private String status;
    private String qtime;
    private String extraStr;

    private ArrayList<Object> datas;
    private ArrayList<Object> data1s;

    public ArrayList<Object> getData1s() {
        return data1s;
    }

    public void setData1s(ArrayList<Object> data1s) {
        this.data1s = data1s;
    }

    public ArrayList<Object> getDatas() {
        return datas;
    }

    public void setDatas(ArrayList<Object> datas) {
        this.datas = datas;
    }

    public String getExtraStr() {
        return extraStr;
    }

    public void setExtraStr(String extraStr) {
        this.extraStr = extraStr;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getQtime() {
        return qtime;
    }

    public void setQtime(String qtime) {
        this.qtime = qtime;
    }


    public void setSuccess() {
        setMsg("操作成功");
        setStatus("200");
    }

    public void setRunning() {
        setMsg("运行中，具体结果以日志为准");
        setStatus("200");
    }

    public void setFail(String reason) {
        if (reason == null){
            reason = "异常操作";
        }
        setMsg(reason);
        setStatus("201");
    }


}
